//
//  ChargeView.m
//  TEst
//
//  Created by   丛熠超 on 2017/4/13.
//  Copyright © 2017年 Tongcheng. All rights reserved.
//

#import "ChargeView.h"

@implementation ChargeView
- (void)awakeFromNib{
    [super awakeFromNib];
    self.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight);
}

+ (instancetype)gainMineHeaderView
{
    return [[NSBundle mainBundle] loadNibNamed:@"ChargeView" owner:self options:nil].lastObject;
}
- (IBAction)GetOneBtn:(UIButton *)sender {
    [self.OneHuafeiBtn setBackgroundImage:[UIImage imageNamed:@"100元话费"] forState:UIControlStateNormal];
    [self.FiveHuafeiBtn setBackgroundImage:[UIImage imageNamed:@"50元话费"] forState:UIControlStateNormal];
    _YbiLB.text = @"对应11000Y币";
    _GiveLB.text = @"再送50话费";
    
    
}
- (IBAction)Get50Btn:(UIButton *)sender {
    [self.FiveHuafeiBtn setBackgroundImage:[UIImage imageNamed:@"100元话费"] forState:UIControlStateNormal];
    [self.OneHuafeiBtn setBackgroundImage:[UIImage imageNamed:@"50元话费"] forState:UIControlStateNormal];
    _YbiLB.text = @"对应5500Y币";
    _GiveLB.text = @"再送100话费";
}
- (IBAction)GetWeiXinBtn:(UIButton *)sender {
    [self.WeiXinBtn setBackgroundImage:[UIImage imageNamed:@"100元话费"] forState:UIControlStateNormal];
    [self.ZhifuBtn setBackgroundImage:[UIImage imageNamed:@"50元话费"] forState:UIControlStateNormal];
    [self.OtherBtn setBackgroundImage:[UIImage imageNamed:@"50元话费"] forState:UIControlStateNormal];
}
- (IBAction)GetZhifuBtn:(UIButton *)sender {
    [self.ZhifuBtn setBackgroundImage:[UIImage imageNamed:@"100元话费"] forState:UIControlStateNormal];
    [self.WeiXinBtn setBackgroundImage:[UIImage imageNamed:@"50元话费"] forState:UIControlStateNormal];
    [self.OtherBtn setBackgroundImage:[UIImage imageNamed:@"50元话费"] forState:UIControlStateNormal];
}
- (IBAction)GetOtherBtn:(UIButton *)sender {
    [self.OtherBtn setBackgroundImage:[UIImage imageNamed:@"100元话费"] forState:UIControlStateNormal];
    [self.WeiXinBtn setBackgroundImage:[UIImage imageNamed:@"50元话费"] forState:UIControlStateNormal];
    [self.ZhifuBtn setBackgroundImage:[UIImage imageNamed:@"50元话费"] forState:UIControlStateNormal];
}
- (IBAction)GetSureBtn:(UIButton *)sender {
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
